{extend name="common/main"}

{block name="head"}

{include file="common/head"}

{/block}

{block name="content"}

<link href="__STATIC__/home/css/inheritance.css" rel="stylesheet" type="text/css" />

<div class="contentmain"> 
    <!--tile-->
    <div class="tszl_title">
      <h3>当前位置：<a href="{:url('home/index/index')}">首页</a><span>></span>传承人</h3>
    </div>
    <div class="sub_con">
      <div class="tszl_sub"> <span class="tszl_big">传承人</span><span class="tszl_small">INHERITANCE PEOPLE</span> </div>
      <div class="tszl_sx">
        <div class="search_results">
          <a href="{:url('home/client/index')}">全部</a>><span>{notempty name="kw"}"{$kw}"{else /}{$kw}{/notempty}</span>共<b>{$snum|default=0}</b>个 传承人
        </div>
        <div id="page-search-store" class="border sxcon">
          <div class="search-by by-category relative">
            <dl class="relative clearfix">
              <dt class="Fleft"><a href="javascript:;">按地区：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/client/index')}?aid=&nid={:input('nid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {empty name="aid"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="areas" id="vo" empty=""}
                  <a href="{:url('home/client/index')}?aid={$vo['area_id']}&nid={:input('nid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {eq name="aid" value="$vo.area_id"}class="search_float"{/eq}>{$vo.area_name}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
            <dl class="relative clearfix" style="border-bottom:0">
              <dt class="Fleft"><a href="javascript:;">按民族：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/client/index')}?nid=&aid={:input('aid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {empty name="nid"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="nations" id="vo" empty=""}
                  <a href="{:url('home/client/index')}?nid={$vo['id']}&aid={:input('aid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {eq name="nid" value="$vo.id"}class="search_float"{/eq}>{$vo.title}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
            <dl class="relative clearfix" style="border-bottom:0">
              <dt class="Fleft"><a href="javascript:;">按疾病：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/client/index')}?did=&aid={:input('aid')}&nid={:input('nid')}&kw={:input('kw')}">
                    <span {empty name="did"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="diseases" id="vo" empty=""}
                  <a href="{:url('home/client/index')}?did={$vo['id']}&aid={:input('aid')}&nid={:input('nid')}&kw={:input('kw')}">
                    <span {eq name="did" value="$vo.id"}class="search_float"{/eq}>{$vo.title}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
          </div>
        </div>
      </div>
      <div class="inheritance">
        <ul>
          {volist name="list" id="vo" offset="0" length="" empty="暂无数据"}
          <a href="javascript:;" class="pp" data-m="client" data-id="{$vo.id}">
          <li>
            <div class="inheritance_pic"><img src="{$vo.avatar}"></div>
            <div class="inheritance_title">
              <h3>{$vo.truename}</h3>
            </div>
            <!-- <div class="inheritance_sub">传承技能：{$vo.inheritor}</div> -->
            <div class="inheritance_sub">{$vo['honors'][0]}</div>
            <div class="inheritance_hot">{$vo.title}</div>
            <div class="inheritance_ss">{$vo.unit_name}</div>
            <div class="inheritance_font"><b>擅长:</b>{$vo['advantages'][0]}</div>
          </li>
          </a>
          {/volist}
        </ul>
      </div>
      <!-- <div class="tcdPageCode"></div> -->
      <div class="page">{$page}</div>   
      <style type="text/css">
        .page .pagination {position:inherit;display: inline-block; padding-left: 0; margin: 20px 0 0px; border-radius: 4px; }
        .page .pagination>li {display: inline;}
        .page .pagination>li>a, .page .pagination>li>span {position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.42857143; color: #78201f; text-decoration: none; background-color: #fff; border: 1px solid #ddd; cursor: pointer; margin: 0 2px;}
        .page .pagination>.active span{z-index: 3; color: #fff; cursor: default; background-color: #78201f; border-color: #78201f;} .page .pagination>.disabled span{color: #bfbfbf; cursor: not-allowed; background-color: #fff; border-color: #ddd;} 
        .page .pagination>li>a:hover{background: #78201f; color: #fff;}
      </style>
    </div>
</div>

{/block}

{block name="footer"}

{include file="common/footer"}

{/block}

{block name="script"}
{include file="common/script"}
<!--更多--> 
<!-- <script>
    //分页
    $(".tcdPageCode").createPage({
        pageCount:6,
        current:1,
        backFn:function(p){
            console.log(p);
        }
    });
    $(function(){
        $(".show-more").click(function(event){
            event.preventDefault();
            var ticon = $(this).find("i");
                tspan = $(this).find("span");
                if($(this).hasClass("zk")){
                    $(this).siblings(".show-con").css("height","30px");
                    ticon.removeClass("icon-angle-up");
                    ticon.addClass("icon-angle-down");
                    tspan.html("更多");
                    $(this).removeClass("zk")
                }else{
                    $(this).siblings(".show-con").css("height","auto");
                    ticon.removeClass("icon-angle-down");
                    ticon.addClass("icon-angle-up");
                    tspan.html("收起");
                    $(this).addClass("zk")
                }
        })
    })
</script>  -->
{/block}